<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{$meta_title}</title>
  
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="">
  <link rel="apple-touch-icon-precomposed" href="">
  <meta name="apple-mobile-web-app-title" content="{$meta_title}" />
  <link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/admin.css">
  <link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/mycss.css">
  <script src="__PUBLIC__/js/laydate/laydate.js"></script>
 <script type="text/javascript" src="__PUBLIC__/libs/dingding/javascripts/zepto.min.js"></script>
  <script type="text/javascript" src="http://g.alicdn.com/dingding/dingtalk-pc-api/2.6.2/index.js"></script>
   <style type="text/css">
		.am-form div.am-text-right{padding:7px 0;}
	</style>
</head>
<body>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
      <ul class="am-list admin-sidebar-list">
        <li ><a href="#"><span><img alt="{$user_info.name}" src="{$user_info.avatar}"  style="display: block; margin: 0 auto; width: 80%;border-radius: 50%;"></span> {$user_info.name}</a></li>
        <li ><a href="/Home/Task/shouye"><span class="am-icon-home"></span> 首页</a></li>
        <li class="nav-active"><a href="/Home/Domain/index"><span class="am-icon-th"></span>域名</a></li>
                
      </ul>
      
    </div>
  </div>
  <!-- sidebar end -->

<!-- content start -->
<div class="admin-content" style="overflow-y: scroll;">
  <div class="admin-content-body">
   <div class="am-cf am-my-title">{$meta_title}</div>
      
<form class="am-form" id="form" action="{:U('Home/Domain/add')}" method="post">

			          
	          <div class="am-g am-margin-top">
              <div class="am-u-sm-4 am-u-md-2 am-text-right">
                域名
              </div>
              <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                <input type="text" class="am-input-sm" name="name" >
              </div>
            </div>  
            
            <div class="am-g am-margin-top">
	            <div class="am-u-sm-4 am-u-md-2 am-text-right">注册商</div>
	            <div class="am-u-sm-8 am-u-md-4 am-u-end ">
	              <select name="register" id="register">
	              	<volist name="supp" id="vo" >
	                <option value="{$vo.id}">{$vo.title}</option>
	                </volist>
	              </select>
	            </div>
	          </div>
            
            <div class="am-g am-margin-top">
              <div class="am-u-sm-4 am-u-md-2 am-text-right">
                管理密码
              </div>
              <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                <input type="text" class="am-input-sm" name="psd" >
              </div>
            </div>  
            
            <div class="am-g am-margin-top">
             <div class="am-u-sm-4 am-u-md-2 am-text-right">搜索客户</div>
             <div class="am-u-sm-12 am-u-md-4 am-u-end" >
	          <div class="am-input-group am-input-group-sm">
	            <input type="text" class="am-form-field" id="so_customer" placeholder="请输入客户名/编号/手机号">
	          <span class="am-input-group-btn">
	            <button class="am-btn am-btn-default" type="button" id="search_customer">搜索</button>
	          </span>
	          </div>
	        </div>
             </div>
             
			  <div class="am-g am-margin-top">
	            <div class="am-u-sm-4 am-u-md-2 am-text-right">客户</div>
	            <div class="am-u-sm-8 am-u-md-4 am-u-end ">
	              <select name="customer" id="customer">
	              	<volist name="customer" id="vo" >
	                <option value="{$vo.id}">{$vo.title}</option>
	                </volist>
	              </select>
	            </div>
	          </div>
            	          
	           <div class="am-g am-margin-top">
              <div class="am-u-sm-4 am-u-md-2 am-text-right">
                注册时间
              </div>
              <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
              
                <input class="laydate-icon" onclick="laydate()" name="r_time" value=""/>
              </div>
            </div>  
	          
	          <div class="am-g am-margin-top">
              <div class="am-u-sm-4 am-u-md-2 am-text-right">
                过期时间
              </div>
              <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
              
                <input class="laydate-icon" onclick="laydate()" name="e_time" value=""/>
              </div>
            </div>  
                   
            <div class="am-g am-margin-top">
              <div class="am-u-sm-4 am-u-md-2 am-text-right">
               续费价格
              </div>
              <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                <input type="text" class="am-input-sm" name="price" >
              </div>
            </div>  
	     
            
            <div class="am-g am-margin-top-sm">
              <div class="am-u-sm-12 am-u-md-2 am-text-right admin-form-text">
                备注
              </div>
              <div class="am-u-sm-12 am-u-md-6 am-u-end">
                <textarea rows="4" name="remark" placeholder="请填写备注"></textarea>
              </div>
            </div>
            
            
          </form>
   
   <div class="am-g am-margin-top am-margin">
              <div class="am-u-sm-4 am-u-md-2 am-text-right">&nbsp;&nbsp;</div>
              <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                 <button type="button" class="am-btn am-btn-primary am-btn-xs" id="save">提交保存</button>
      			 <button type="button" class="am-btn am-btn-primary am-btn-xs" onClick="javascript :history.back(-1);">放弃保存</button>
    		  </div>
          </div> 
	

  </div>
</div>
<!-- content end -->

</div>

<script type="text/javascript" >

//搜索客户
$('#search_customer').click(function(){
	var keyword=$('#so_customer').val();
	var params = {};
	params.keyword=keyword;
	
	var url="{:U('Home/Server/getCustomerAjax')}";
	$.post(url,params,function(data) {
		
			$('#customer').html(data);
		
	});
});




//提交表单
	$('#save').click(function(){
	 	$('#form').submit();
	});
</script>

<script src="__ROOT__/Application/Home/View/default/assets/js/jquery.min.js"></script>

<script src="__ROOT__/Application/Home/View/default/assets/js/amazeui.min.js"></script>
<script src="__ROOT__/Application/Home/View/default/assets/js/app.js"></script>
</body>
</html>
